package test.dhcp;

import java.util.Random;

import top.ieei.demo.dhcp.DHCPPacket;

public class DHCPClient
{
  private static byte[] macAddress = { 0, 1, 2, 3, 4, 5 };

  private DHCPClient()
  {
    throw new UnsupportedOperationException();
  }

  public static void main(String[] args)
  {
    DHCPPacket discover = new DHCPPacket();

    discover.setOp((byte)1);
    discover.setHtype((byte)1);
    discover.setHlen((byte)6);
    discover.setHops((byte)0);
    discover.setXid(new Random().nextInt());
    discover.setSecs((byte)0);
    discover.setFlags((byte)0);
    discover.setChaddr(macAddress);
  }
}
